/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.asset.model.resp;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import top.continew.admin.common.model.resp.BaseResp;
import java.io.Serial;
import java.time.*;

/**
 * 配件信息
 *
 * @author CharlieYan
 * @since 2025/07/03 10:52
 */
@Data
@Schema(description = "配件信息")
public class PartRecordsResp extends BaseResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Schema(description = "编号")
    private String code;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 类型ID
     */
    @Schema(description = "类型ID")
    private Long categoryId;

    /**
     * 类型
     */
    @Schema(description = "类型")
    private String categoryName;

    /**
     * 供应商ID
     */
    @Schema(description = "供应商ID")
    private Long producerId;

    /**
     * 供应商
     */
    @Schema(description = "供应商")
    private String producerName;

    /**
     * 规格
     */
    @Schema(description = "规格")
    private String specification;

    /**
     * 序列号
     */
    @Schema(description = "序列号")
    private String sn;

    /**
     * 单价
     */
    @Schema(description = "单价")
    private Double price;

    /**
     * 购买日期
     */
    @Schema(description = "购买日期")
    private LocalDate purchaseDate;

    /**
     * 过保日期
     */
    @Schema(description = "过保日期")
    private LocalDate expireDate;

    /**
     * 折旧规则ID
     */
    @Schema(description = "折旧规则ID")
    private Long depreciationRuleId;

    /**
     * 是否删除（0、正常，1、删除）
     */
    @Schema(description = "是否删除（0、正常，1、删除）")
    private Integer isDel;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;

}